package reflectdemo;
class Student{
    private String name;
    public int age;
    public Student(){
        System.out.println("student()");
    }
    private Student(String name,int age){
        this.name=name;
        this.age=age;
        System.out.println("student(String,name)");
    }
    private void eat(){
        System.out.println("i am eating");
    }
    public void sleep(){
        System.out.println("you are pig");
    }
    private void function(String str){
        System.out.println(str);
    }

    @Override
    public String toString() {
        return "student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class TestDemo {
}
